import {Component, Input, OnInit} from "@angular/core";

class ItemModel {
  large: String;
  small: String;
  name: String;
  price: String;
}

@Component({
  selector: 'app-rent-banner',
  templateUrl: './rent-banner.component.html',
  styleUrls: ['./rent-banner.component.scss']
})
export class RentBannerComponent implements OnInit {
  static defaultItems = [
    {
      projectId:1,
      large: 'assets/images/project-detail-view/large/large01.jpg',
      small: 'assets/images/project-detail-view/large/large01.jpg',
      name: '上海 城银店',
      price: '1000/月起'
    },
    {
      projectId:2,
      large: 'assets/images/project-detail-view/large/large02.jpg',
      small: 'assets/images/project-detail-view/large/large02.jpg',
      name: '上海 航谊店',
      price: '1000/月起'
    },
    {
      projectId:3,
      large: 'assets/images/project-detail-view/large/large03.jpg',
      small: 'assets/images/project-detail-view/large/large03.jpg',
      name: '上海 城银店',
      price: '800/月起'
    },
    {
      projectId:4,
      large: 'assets/images/project-detail-view/large/large04.jpg',
      small: 'assets/images/project-detail-view/large/large04.jpg',
      name: '上海 航谊店',
      price: '900/月起'
    },
  ];

  @Input() items: Array<ItemModel> = RentBannerComponent.defaultItems;

  constructor() {
  }

  ngOnInit() {
  }

}
